//
//  ServiceHelper.h
//  BSValue2
//
//  Created by Rainbow on 12/21/10.
//  Copyright 2010 iTotemStudio. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIFormDataRequest.h"

typedef enum
{
    SydenyRequestGetShops = 0,
    SydenyRequestGetAdvertising,
    SydenyRequestAddComments,
    SydenyRequestGetComments,
    SydenyRequestLogin,
    SydenyRequestRegister,
    SydenyRequestGetCollectMost,
    SydenyRequestGetRank,
    SydenyRequestGetWeekHot,
    SydenyRequestGetCollectMostShop,
    SydenyRequestGetWeekHotShop,
    SydenyRequestSetNotification
	
}SydenyRequestType;

@interface ServiceHelper : NSObject {
	NSMutableDictionary *CallBacks;
}

+ (ServiceHelper *)sharedService;
- (void) restore;
- (NSString *)getTimeStamp;
- (BOOL)checkNetwork:(NSString *)errorMessage;
- (ASIFormDataRequest *)requestServerForMethod:(SydenyRequestType)methodType WithParameters:(NSDictionary *)parameters AndCallBackScope:(id)callBackDelegate AndSuccessSel:(NSString *)successSelector AndFailedSel:(NSString *)failedSelector;
@end
